﻿using System;
using Common.Interfaces;

namespace Common.Gui.GuiWinFormsLib.Helpers
{
    internal class PanelChangedEventArgs : EventArgs
    {
        DockablePanelState state;

        internal DockablePanelState State
        {
            get { return state; }
        }

        internal PanelChangedEventArgs(DockablePanelState state)
        {
            this.state = state;
        }

        internal static PanelChangedEventArgs EventArgsFloating
        {
            get { return new PanelChangedEventArgs(DockablePanelState.Floating); }
        }

        internal static PanelChangedEventArgs EventArgsHidden
        {
            get { return new PanelChangedEventArgs(DockablePanelState.Hidden); }
        }

        internal static PanelChangedEventArgs EventArgsMaximalized
        {
            get { return new PanelChangedEventArgs(DockablePanelState.Maximalized); }
        }

        internal static PanelChangedEventArgs EventArgsNormal
        {
            get { return new PanelChangedEventArgs(DockablePanelState.Normal); }
        }
    }
}
